package com.css.zfzx.fxpg.modules.economicloss.middle.service;

import com.alibaba.fastjson.JSONObject;
import com.css.zfzx.fxpg.modules.economicloss.middle.repository.entity.FxEconomyLossMiddleEntity;
import com.css.zfzx.fxpg.modules.economicloss.middle.viewobjects.FxEconomyLossMiddleQueryParams;
import com.css.bpm.platform.sys.dict.repository.entity.DictItemEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author andy
 * @date 2020-12-02
 */

public interface FxEconomyLossMiddleService {

    public JSONObject queryFxEconomyLossMiddles(FxEconomyLossMiddleQueryParams queryParams, int curPage, int pageSize);

    public FxEconomyLossMiddleEntity getFxEconomyLossMiddle(String id);

    public FxEconomyLossMiddleEntity saveFxEconomyLossMiddle(FxEconomyLossMiddleEntity fxEconomyLossMiddle);

    public FxEconomyLossMiddleEntity updateFxEconomyLossMiddle(FxEconomyLossMiddleEntity fxEconomyLossMiddle);

    public void deleteFxEconomyLossMiddles(List<String> ids);

    List<DictItemEntity> getValidDictItemsByDictCode(String dictCode);

    String findByDictCodeAndDictItemCode(String dictCode, String dictItemCode);

    public List<FxEconomyLossMiddleEntity> queryFxEconomyLossMiddles(FxEconomyLossMiddleQueryParams queryParams);

    public String exportExcel(FxEconomyLossMiddleQueryParams queryParams, HttpServletResponse response);

    String exportEstimateExcel(FxEconomyLossMiddleQueryParams queryParams, HttpServletResponse response);

    String exportEconomyLossExcel(FxEconomyLossMiddleQueryParams queryParams, HttpServletResponse response);

    String importExcel(MultipartFile file);
}
